package com.medical.admin.patient.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 物流详情表
 */
@Data
@TableName(value = "mar_logistics")
public class Logistics {
    /**
     * 物流id,单号
     */
    @TableId(value = "logistics_id", type = IdType.ASSIGN_ID)
    private Long logisticsId;

    /**
     * 收件人
     */
    @TableField(value = "addressee")
    private String addressee;

    /**
     * 收件人电话
     */
    @TableField(value = "addressee_phone")
    private Integer addresseePhone;

    /**
     * 城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 详细地址
     */
    @TableField(value = "detail_address")
    private String detailAddress;

    /**
     * 配送方式 0 顺丰到付 1韵达到付 2邮政到付 默认为0
     */
    @TableField(value = "distribution_mode")
    private Integer distributionMode;

    /**
     * 物流状态 0未送达 1已送达 默认为0
     */
    @TableField(value = "logistics_state")
    private Integer logisticsState;

    /**
     * 患者id
     */
    @TableField(value = "patient_id")
    private Long patientId;

    public static final String COL_LOGISTICS_ID = "logistics_id";

    public static final String COL_ADDRESSEE = "addressee";

    public static final String COL_ADDRESSEE_PHONE = "addressee_phone";

    public static final String COL_CITY = "city";

    public static final String COL_DETAIL_ADDRESS = "detail_address";

    public static final String COL_DISTRIBUTION_MODE = "distribution_mode";

    public static final String COL_LOGISTICS_STATE = "logistics_state";

    public static final String COL_PATIENT_ID = "patient_id";
}